<%@page import="youleche.com.common.MenuFactory"%>
<%@page import="youleche.com.model.MBaseParamInfo"%>
<%@page import="java.util.List"%>
<%@page import="youleche.com.controler.controler.PageDataForBussinessControler"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>优乐车-管理界面</title>

<link href="/meileche/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="/meileche/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/meileche/css/easyui.css">
<link rel="stylesheet" type="text/css" href="/meileche/js/superfish-1.4.8/css/superfish.css" media="screen">
		
<script type="text/javascript" src="/meileche/js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/meileche/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/meileche/js/superfish-1.4.8/js/hoverIntent.js"></script>
<script type="text/javascript" src="/meileche/js/superfish-1.4.8/js/superfish.js"></script>
<script type="text/javascript" src="/meileche/layer/layer.js"></script>
<script type="text/javascript" src="/meileche/js/addMenu.js"></script>
</head>
<body>
	<div class="topNavigate">
		<div 
			style="margin-left: auto; margin-right: auto; width: 1000px; height: 50px;">
			<div style="float: left; width: 250px; height: 50px;">
				<img src="/meileche/image/ylc_logo_small.jpg" />
			</div>
			<div
				style="float: left; width: 500px; height: 50px; font-size: 45px;">
				</div>
			<div
				style="width: 250px; height: 35px; float: left; color: #444; font-size: 18px;"
				align="right">
				<a>注销</a>
			</div>
		</div>
	</div>
	<div class="registerDiv">
		<div style="width:100%;">
			<table style="width: 100%;">
				<tr style="height:40px;">
					<td align="right" style="color: #888;height:40px;">菜单类别:</td>
						<td style="padding:15px;">
						<%
							List<String> list = MenuFactory.getMenuType();

							if(list !=null && list.size() > 0){
						%>
						<select id="selectType" class="selectpicker span2" data-size="false">
							<option value="0">--请选择菜单类别--</option>
							<%
									for(String type : list){
										%>
											<option value="<%=type%>"><%= type %></option>
										<%
									}
							%>
						</select>
						<%
							} %>
						<input type="button" id="btnNew" value="新建类别" class="btn" style="border:1px solid #ccc;"/>
						</td>
					</tr>
				<tr  style="height:40px;">
					<td align="right" style="color: #888;">菜单名:</td>
					<td><input type="text"  onblur="validateExist();" id="txtTableName" style="width: 200px;height:30px;margin: 15px 15px 15px 15px;"/><span id="txtWarnTableName"></span></td>
					
				</tr>
				<tr style="height:40px;">
				<td align="right" style="color: #888;">菜单路径:</td>				
					<td style="padding:15px;">
						<input type="text"  onblur="validateExist();" id="txtpath" style="width: 500px;height:30px;"/>
					
						</td>
				</tr>
				<tr>
					<td colspan="2" style="padding-left:120px;">
						<input type="hidden" value="0" id="hidTableNameValue"/>
			<input type="button" class="btn btn-success" style="width:100px;margin-right: 10px;"  value="清除填写" onclick="clearTxt();"/>
			<input type="button"  class="btn btn-primary" style="width:100px;margin-right: 10px;" value="新增" onclick="add();"/>
			<input type="button" class="btn btn-success" style="width:100px;margin-right: 10px;" value="返回" onclick="returnIndex();"/>
					</td>
				</tr>
			</table>
		</div>
			
		
	</div>
	<div style="display:none;text-align:center;" id="newDiv">
		<span style="width: 200px;height:30px;margin: 15px 15px 15px 15px;" id="spanWarn">*类别必须以Menu结尾</span><br/>
		类别：<input type="text" id="txtParamValue" style="width: 200px;height:30px;margin: 15px 15px 15px 15px;"/><br/>
		备注：<textarea id="txtRemark" style="width: 200px;height:100px;margin: 15px 15px 0px 15px;"></textarea><br/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" onclick="createObject();" id="btnOk" value="创建" style="border:1px solid #ccc;margin:15px 0px 0px 0px;width:200px;height:30px;"/>
						
	</div>
</body>
</html>
